import request from '@/utils/request';
// 经销商首页
export const info = (params) => request.get("jingxiaoshang/info", {params});
// 经销商添加门店
export const insertShop = (params) => request.post("jingxiaoshang/insert_shop", params);
// 经销商更新门店
export const updateShop = (params) => request.post("jingxiaoshang/update_shop", params);
// 经销商门店详情
export const shopInfoDetail = (params) => request.post("jingxiaoshang/shop_info", params);
// 门店下的机器人
export const jqrs = (params) => request.get("index/shop_jqr", {params});
// 经销商我的门店
export const shops = (params) => request.get("jingxiaoshang/shop", {params});
// 经销商我的机器人
export const jiqiren = () => request.get("jingxiaoshang/jiqiren");
// 经销商-我的机器人-我的门店
export const myShoplist = (params) => request.post("jingxiaoshang/my_shoplist", params);
// 经销商-分配机器人
export const fenpei = (params) => request.post("jingxiaoshang/fenpei", params);
// 经销商我的门店提现列表
export const tixianList = (params) => request.get("jingxiaoshang/tixian_list2", {params});
// 经销商我的门店提现审核
export const tixianShenhe = (params) => request.post("jingxiaoshang/tixian_shenhe", params);


// 门店合伙人首页
export const shopinfo = (params) => request.get("jingxiaoshang/shopinfo", {params});
// 门店合伙人我的机器人
export const shopjiqiren = () => request.get("jingxiaoshang/shop_jiqiren");
// 门店合伙人修改机器人状态
export const updateopen = (params) => request.post("jingxiaoshang/update_open", params);
// 门店合伙人提现列表
export const shoptixianLists = (params) => request.get("jingxiaoshang/tixian_list", {params});
// 门店合伙人提现详情
export const shoptixianinfo = (params) => request.get("jingxiaoshang/tixian_info", {params});


// 收益统计通用
export const sytj = () => request.get("jingxiaoshang/sytj");

// 收益统计(根据类型)
export const tongji = (params) => request.get("jingxiaoshang/tongji", {params});





// 机器人下单信息，二维码扫码进去
export const jqrInfo = (params) => request.get("index/jqr_info", {params});
// 机器人下单(jsapi调支付)
export const jqrOrder = (params) => request.post("index/jqr_order", params);
// 拉卡拉支付回调
export const jqrPay = (params) => request.post("pay/payResult", params);
// 启动服务
export const startFw = (params) => request.post("index/start_fw", params);
// 服务订单列表
export const fwOrderList = (params) => request.get("index/fw_order_list", {params});
// 订单列表支付
export const prepay = (params) => request.post("pay/prepay", params);


// 服务订单详情
export const orderInfo = (params) => request.get("index/order_info", {params});
// 服务订单删除
export const orderDel = (params) => request.get("index/order_del", {params});
// 服务订单评价
export const orderPl = (params) => request.post("index/order_pl", params);

// 分佣订单
export const fyOrderList = (params) => request.get("jingxiaoshang/order_list", {params});

// 推广门店
export const tgmd = (params) => request.get("jingxiaoshang/tgmd", {params});
// 推广机器人
export const tgjqr = (params) => request.get("jingxiaoshang/tgjqr", {params});
// 我的收入
export const tgsr = (params) => request.get("jingxiaoshang/tgsr", {params});


// aiIndex 获取配置信息
export const getSetting = (params) => request.get("gpt/getSetting", {params});
// aiIndex 获取首页问询参数
export const getChatSetting = () => request.get("gpt/getChatSetting");
// aiIndex 问询的历史记录
export const getHistoryMsg = (params) => request.get("gpt/getHistoryMsg", {params});
// aiIndex 文字转语音
export const text2Audio = (params) => request.get("gpt/text2Audio", {params});



